<?php
    require_once('functions.php');
    require_once('session_handler.php');
    session_handler_start();
    if (check_login())
        header('Location: main.php');
    else
        header('Location: FirstPage.php');
?>